package com.gc.server.service;

import com.gc.server.entity.ApplyEntity;
import com.gc.server.vo.ApplyUserVo;
import com.gc.server.vo.ApplyVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * 出差申请Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
public interface ApplyService extends BaseService<ApplyEntity> {

    /************自动生成**************/
    List<ApplyVo> findVo(ApplyVo vo);

        ApplyVo getVo(Long id);

     int updateVo(ApplyVo vo);

       int saveVo(ApplyVo vo);

    void downLoad(HttpServletResponse response, List<ApplyVo> list);

    void upload(InputStream file);

    /***********BACK***********/




    /***********API***********/

    List<ApplyVo> findMyShopUserAndDate(Long topUserId, Long userId, Date startDate, Date endDate);

    List<ApplyVo> findByUserAndDate(Long userId,Date startDate,Date endDate);

    ApplyEntity check(Long userId, Long id, Integer status, String remark);

    Integer sumCheck(Long userId);

}
